from celery_tasks.main import app
from libs.yuntongxun.sms import CCP


@app.task
def send_sms_code(mobile, sms_code):
    ccp = CCP()
    # 注意： 测试的短信模板编号为1
    ccp.send_template_sms(mobile, [sms_code, 5], 1)
